<template>
	<view>
		<u-cell-group>
			<u-cell @click="toHouseRoom(title + ' ' + (item + 1) + '号楼')" v-for="item in num" :key="item"
				:title="title + ' ' + (item + 1) + '号楼'" isLink></u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				num: null
			}
		},
		methods: {
			toHouseRoom(title) {
				uni.navigateTo({
					url: '/pkg-house/house-room/house-room?title=' + title
				})
			}
		},
		onLoad(options) {
			this.num = Math.ceil(Math.random() * 10);
			// console.log(this.num);
			this.title = options.title
		}
	}
</script>

<style>

</style>
